*{
    box-sizing: border-box;
}
.container{
    height: 100vh;
    width: 100%;
    background-color: #fafafa;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.btn{
    background-color: #f9ca24;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: white;
    font-weight: bold;
    border: 0;
    border-radius: 3px;
    box-shadow: 0px 3px rgba(249, 202, 36, 0.5);
    cursor: pointer;
    letter-spacing: 1px;
    position: fixed;
    top: 20px;
}
.btn:focus{
    outline: none;
}
.btn:active{
    transform: translateY(3px);
    -webkit-transform: translateY(3px);
    -moz-transform: translateY(3px);
    -ms-transform: translateY(3px);
    -o-transform: translateY(3px);
    box-shadow: none;
}

.boxes{
    width: 500px;
    height: 500px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    position: relative;
    transition: 0.8s ease-in-out;
    -webkit-transition: 0.8s ease-in-out;
    -moz-transition: 0.8s ease-in-out;
    -ms-transition: 0.8s ease-in-out;
    -o-transition: 0.8s ease-in-out;
}
.boxes.big{
    width: 600px;
    height: 600px;
}
.boxes.big .box {
    transform: rotateZ(360deg);
}

.box{
    background-image: url('https://media.giphy.com/media/EZqwsBSPlvSda/giphy.gif');
    background-repeat: no-repeat;
    background-size: 500px 500px;
    width: 125px;
    height: 125px;
    position: relative;
    transition: 0.8s ease-in-out;
    -webkit-transition: 0.8s ease-in-out;
    -moz-transition: 0.8s ease-in-out;
    -ms-transition: 0.8s ease-in-out;
    -o-transition: 0.8s ease-in-out;
}

.box::before{
    content: '';
    background-color: #f6e58d;
    position: absolute;
    top: 6px;
    right: -12px;
    height: 100%;
    width: 12px;
    transform: skewY(45deg);
    -webkit-transform: skewY(45deg);
    -moz-transform: skewY(45deg);
    -ms-transform: skewY(45deg);
    -o-transform: skewY(45deg);
}
.box::after{
    content: '';
    background-color: #f9ca24;
    width: 100%;
    height: 12px;
    position: absolute;
    bottom: -12px;
    right: -6px;
    transform: skewX(45deg);
    -webkit-transform: skewX(45deg);
    -moz-transform: skewX(45deg);
    -ms-transform: skewX(45deg);
    -o-transform: skewX(45deg);
}